Socket
Socket
Sign inDemoInstall

executable

Package Overview
Dependencies
51
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    executable

Check if a file is executable


Version published
Maintainers
1
Install size
577 kB
Created

Readme

Source

executable Build Status

Check if a file is executable using Node.js

Install

$ npm install --save executable

Usage

const executable = require('executable');

executable('bash').then(exec => {
	console.log(exec);
	//=> true
});

API

executable(file)

Returns a promise that resolves to a boolean of whether the file is executable.

executable.sync(file)

Returns a boolean of whether the file is executable.

CLI

$ npm install --global executable
$ executable --help

  Usage
    $ executable <file>

  Example
    $ executable optipng

License

MIT © Kevin Mårtensson

Keywords

FAQs

Last updated on 01 Dec 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc